<template>
  <div class="all">
    <div class="No-Data" v-if="DataArray ==''">
      <p>这里没有相关记录哦</p>
    </div>
    <div class="H-Data" v-else>
    <div class="content" v-for="(item, index) in DataArray" :key="index">
      <div class="png">
      <img :src="item.img" alt="">
      <span class="name">{{item.name}}</span></div>
      <div class="footer">
        <span class="banner">{{item.content}}</span>
        <span class="price">￥{{item.price/100}}</span>
      </div>
      <div class="button">
        <a-button :size="size">加入购物车</a-button>
        <a-button :size="size">查看物流</a-button>
        <a-button class="eva" :size="size">评价</a-button>
      </div>
    </div>
    </div>
  </div>
</template>

<script>
export default {
data() {
    return {
        DataArray:[],
        size:'small',
    }
},
mounted() {
   this.$http
        .post("/work/box-horse/Alllist.php")
        .then((res) => {
          this.DataArray = res.data.data;
        })
        .catch((err) => {});
},
methods: {
      handleSizeChange(e) {
        this.size = e.target.value;
      },
    },
}

</script>
<style lang="scss" scoped>
.No-Data{
    background-size: 100% 100%;
    text-align: center;
    background-image: url("../assets/imgs/xiaoxiong.jpg");
    padding-top: 380px;
}
p{
    margin-top: -80px;
}
.button{
  display: flex;
  justify-content: space-around;
  margin-top: 50px;
  margin-left: 80px;
  button{
    border-radius: 80px;

  }
}
.eva{
  color: #FF6347;
  border-color: #FF6347;
}
.content{
  // display: flex;
  // justify-content: space-around;
  height: 200px;
  margin: 15px;
  background-color: white;
  border-radius: 10px;
  img{
  margin: 10px;
  padding-top: 10px;
  width: 80px;
  height: 100px;
  float: left;
}
.png{
  margin-top: 20px;
}
.name{
  font-size: 18px;
}
.footer{
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
}
.price{
  padding-right: 10px;
}
}
</style>